package com.boot.security.service.authorization;

import com.boot.security.model.po.Resource;
import com.boot.security.model.vo.SourceKey;

import java.util.List;

/**
 * @author 霜寒 <1621856595@qq.com>
 * @description 集群模式下通知其他服务更新权限
 * @date 2021/7/15 21:31
 **/
public interface AccessSourceClusterService {

    void saveOne(SourceKey sourceKey, Long resourceId);

    void saveMulti(SourceKey sourceKey, List<Long> resourceIds);

    void updateOne(SourceKey sourceKey, Resource oldResource);

    void removeOne(SourceKey sourceKey, Resource oldResource);

    void removeMulti(SourceKey sourceKey, List<Resource> resources);

}
